@import '~antd/lib/style/themes/default.less';
@import '~@/utils/utils.less';

.tableList {
  .tableListOperator {
    margin-bottom: 16px;
    button {
      margin-right: 8px;
    }
  }
}

.listIcon {
  font-size: 28px;
  width: 48px;
  border-radius: 8px;
  text-align: center;
  line-height: normal;
  color: rgb(98,109,123);
  // background-color: #eee;
}

.listValue {
  font-size: 12px;
  color: #808080;
}

.listTitle {
  color: #333;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 16px;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
  word-wrap: break-word;
  word-break: break-all;
}

.listDate {
  color: #808080;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

:global {
  .ant-list-vertical .ant-list-item-content {
    margin-bottom: 0;
  }
  .ant-radio-button-wrapper {
    text-align: center;
  }
}

.tableListForm {
  :global {
    .ant-form-item {
      margin-bottom: 24px;
      margin-right: 0;
      display: flex;
      > .ant-form-item-label {
        width: auto;
        line-height: 32px;
        padding-right: 8px;
      }
      .ant-form-item-control {
        line-height: 32px;
      }
    }
    .ant-form-item-control-wrapper {
      flex: 1;
    }
  }
  .submitButtons {
    display: block;
    white-space: nowrap;
    margin-bottom: 24px;
  }
}

@media screen and (max-width: @screen-lg) {
  .tableListForm :global(.ant-form-item) {
    margin-right: 24px;
  }
}

@media screen and (max-width: @screen-md) {
  .tableListForm :global(.ant-form-item) {
    margin-right: 8px;
  }
  :global(.ant-radio-group.ant-radio-group-outline) {
    width: 100%;
  }
  :global(.ant-radio-button-wrapper) {
    width: 25%;
    padding: 0 8px;
    text-align: center;
  }
}

.listLink {
  display: block;
}

.listLink:focus {
  text-decoration: none;
}
